package com.mapper;

import com.baomidou.mybatisplus.core.mapper.Mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dto.OrderDto;
import com.dto.OrderExtendRbac;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.cursor.Cursor;

import java.util.List;

public interface OrderMapper extends Mapper<OrderExtendRbac> {

    /**
     * 用于测试自动mybatis-plus的自动填充插件
     * @param orderDto
     * @return
     */
    int createOrderByAutoFill(@Param("order") OrderExtendRbac orderDto);

    int addOrder(@Param("order") OrderDto orderDto);

    List<OrderDto> page(IPage<OrderDto> page);

    Cursor export();
}
